package com.example.qxfw.nyqx.service.impl;

import com.example.qxfw.common.entity.ny.CropWeatherDistIndexlib;
import com.example.qxfw.nyqx.mapper.CropWeatherDistIndexlibMapper;
import com.example.qxfw.nyqx.service.CropWeatherDistIndexlibService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CropWeatherDistIndexlibServiceImpl implements CropWeatherDistIndexlibService {

    @Autowired
    private CropWeatherDistIndexlibMapper cropWeatherDistIndexlibMapper;

    @Override
    public List<CropWeatherDistIndexlib> getList(String startTime, String endTime) {
        return cropWeatherDistIndexlibMapper.selectList(startTime,endTime);
    }

    @Override
    public List<CropWeatherDistIndexlib> getList1(String cropName, String easyHappenType) {
        return cropWeatherDistIndexlibMapper.selectList1(cropName,easyHappenType);
    }
}
